//
//  AdaptiveHeader.h
//  SBAdaptiveTool
//
//  Created by user on 2018/9/10.
//  Copyright © 2018年 陈振旭. All rights reserved.
//

#ifndef AdaptiveHeader_h
#define AdaptiveHeader_h


#endif /* AdaptiveHeader_h */

#import "SBBaseLabel.h"
#import "SBBaseTextField.h"
#import "SBBaseTextView.h"
#import "SBBaseButton.h"

#define SBIPHONEWIDTH [UIScreen mainScreen].bounds.size.width
#define SBIPHONEHEIGHT [UIScreen mainScreen].bounds.size.height


#define SBScaleNumber(n) SBIPHONEWIDTH / 375 * n
#define SBHScaleNumber(n) SBIPHONEHEIGHT / 667 * n

#define SBRGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define SBRGB(r,g,b) RGBA(r,g,b,1.0f)

//圆角
#define KViewBorderRadius(View, Radius, Width, Color)\
\
[View.layer setCornerRadius:(Radius)];\
[View.layer setMasksToBounds:YES];\
[View.layer setBorderWidth:(Width)];\
[View.layer setBorderColor:[Color CGColor]]
